"""app URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

import golf.views
import golf.view.golf_yard
import golf.view.golf_member
import la.view.user
import la.view.store
import la.view.sku
import la.view.inventory
import la.view.setting
import la.view.member


urlpatterns = [

    path('la/admin/', admin.site.urls),
    path('la/login/', la.views.login),
    path('la/index/', la.views.index),

    path('la/userinfo/', la.view.user.userinfo),
    path('la/userinfo/add', la.view.user.userinfo_add),
    path('la/userinfo/<int:nid>/edit/',la.view.user.userinfo_edit),
    path('la/userinfo/<int:nid>/stop/',la.view.user.userinfo_stop),

    path('la/storeinfo/',la.view.store.storeinfo),
    path('la/storeinfo/add',la.view.store.storeinfo_add),
    path('la/storeinfo/<int:nid>/edit/',la.view.store.storeinfo_edit),
    path('la/storeinfo/<int:nid>/stop/',la.view.store.storeinfo_stop),

    path('la/syrinfo/',la.view.setting.syrinfo),
    path('la/syrinfo/add',la.view.setting.syrinfo_add),
    path('la/syrinfo/<int:nid>/edit/',la.view.setting.syrinfo_edit),

    path( 'la/zffsinfo/', la.view.setting.zffsinfo ),
    path( 'la/zffsinfo/add', la.view.setting.zffsinfo_add ),
    path( 'la/zffsinfo/<int:nid>/edit/', la.view.setting.zffsinfo_edit ),

    path( 'la/brand/', la.view.setting.brand ),
    path( 'la/brand/add', la.view.setting.brand_add ),
    path( 'la/brand/<int:nid>/edit/', la.view.setting.brand_edit ),

    path( 'la/package/', la.view.setting.package),
    path('la/package/add',la.view.setting.package_add),
    path('la/package/<int:id>/seek/',la.view.setting.package_seek),



    path('la/skuinfo/',la.view.sku.skuinfo),
    path('la/skuinfo/add',la.view.sku.skuinfo_add),
    path('la/skuinfo/<int:nid>/edit/',la.view.sku.skuinfo_edit),
    path('la/uploadSKU/',la.view.sku.uploadSKU),

    path('la/RKinfo/', la.view.inventory.RKinfo),
    path('la/RKinfo/add', la.view.inventory.RKinfo_add),
    path('la/RKinfo/<int:nid>/edit', la.view.inventory.rkinfo_edit),
    path('la/CKinfo/', la.view.inventory.CKinfo),
    path('la/CKinfo/add', la.view.inventory.CKinfo_add),
    path( 'la/CKinfo/<int:nid>/edit', la.view.inventory.ckinfo_edit ),
    path('la/DBinfo/', la.view.inventory.DBinfo),
    path('la/DBinfo/add', la.view.inventory.DBinfo_add),
    path('la/DBinfo/<int:nid>/edit', la.view.inventory.DBinfo_edit),
    path('la/DBinfo/confirm', la.view.inventory.DBinfo_confirm),

    path('la/PDinfo/', la.view.inventory.PDinfo),
    path('la/PDinfo/add',la.view.inventory.PDinfo_add),
    path('la/PDinfo/<int:nid>/edit', la.view.inventory.PDinfo_edit),

    path('la/KCinfo/', la.view.inventory.KCinfo),
    path('la/packageKCinfo/', la.view.inventory.packageKCinfo),

    path('la/sample/',la.view.inventory.sample),
    path('la/sample/add',la.view.inventory.sample_add),
    # path('la/KCinfo/add',views.KCinfo_add),


    path('la/member/',la.view.member.member_info),
    path('la/member/add/',la.view.member.member_add),
    path('la/member/<int:nid>/edit',la.view.member.member_edit),
    path('la/member/<int:nid>/points',la.view.member.member_points),

    path('la/invoice/', la.views.invoice),
    path('la/invoiceSKU/', la.views.invoiceSKU),
    path('la/invoiceFIND/', la.views.invoiceFIND),
    path('la/invoiceth/',la.views.invoiceth),
    path('la/invoiceFINDmemberPhone/', la.views.invoiceFINDmemberPhone),
    path('la/invoiceMemberSalePackage/',la.views.invoiceMemberSalePackage),
    path('la/salelist/', la.views.salelist),
    path('la/packagesaleinfo/', la.views.packagesaleinfo),
    path('la/packagesale/<int:nid>/seek', la.views.packageseek),

    path('la/export/csv/salelist/',la.views.exportSalelist),
    path('la/export/csv/inventoryList/',la.view.inventory.inventoryList),

    path('golf/index/',  golf.views.index),

    path('golf/member/add/', golf.view.golf_member.memberAdd),
    path('golf/member/<int:nid>/edit/', golf.view.golf_member.memberEdit),
    path('golf/memberList/', golf.view.golf_member.memberList),
    path('golf/member/<int:nid>/memberCharge/' ,golf.view.golf_member.charge),
    path( 'golf/member/<int:nid>/memberInfo/', golf.view.golf_member.info ),
    path( 'golf/member/<int:nid>/send/', golf.view.golf_member.send ),
    path('golf/yardList/', golf.view.golf_yard.yardList),
    path('golf/yard/add/', golf.view.golf_yard.yardAdd),
    path('golf/yard/<int:nid>/edit/', golf.view.golf_yard.yardEdit),

    path('golf/yardStart/',golf.views.yardStart),
    path('golf/yardEnd/',golf.views.yardEnd),
    path('golf/invoice/<int:nid>/edit/',golf.views.invoice),
    path('golf/invoiceFINDmemberPhone/',golf.views.findMemberByPhone),
    path('golf/yardsales/',golf.view.golf_yard.yardsales),
]
